import service from '@/utils/request'
// @Tags LegalBasis
// @Summary 创建法律依据
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.LegalBasis true "创建法律依据"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /LB/createLegalBasis [post]
export const createLegalBasis = (data) => {
  return service({
    url: '/LB/createLegalBasis',
    method: 'post',
    data
  })
}

// @Tags LegalBasis
// @Summary 删除法律依据
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.LegalBasis true "删除法律依据"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /LB/deleteLegalBasis [delete]
export const deleteLegalBasis = (params) => {
  return service({
    url: '/LB/deleteLegalBasis',
    method: 'delete',
    params
  })
}

// @Tags LegalBasis
// @Summary 批量删除法律依据
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除法律依据"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /LB/deleteLegalBasis [delete]
export const deleteLegalBasisByIds = (params) => {
  return service({
    url: '/LB/deleteLegalBasisByIds',
    method: 'delete',
    params
  })
}

// @Tags LegalBasis
// @Summary 更新法律依据
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.LegalBasis true "更新法律依据"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /LB/updateLegalBasis [put]
export const updateLegalBasis = (data) => {
  return service({
    url: '/LB/updateLegalBasis',
    method: 'put',
    data
  })
}

// @Tags LegalBasis
// @Summary 用id查询法律依据
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data query model.LegalBasis true "用id查询法律依据"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /LB/findLegalBasis [get]
export const findLegalBasis = (params) => {
  return service({
    url: '/LB/findLegalBasis',
    method: 'get',
    params
  })
}

// @Tags LegalBasis
// @Summary 分页获取法律依据列表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取法律依据列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /LB/getLegalBasisList [get]
export const getLegalBasisList = (params) => {
  return service({
    url: '/LB/getLegalBasisList',
    method: 'get',
    params
  })
}

// @Tags LegalBasis
// @Summary 不需要鉴权的法律依据接口
// @Accept application/json
// @Produce application/json
// @Param data query flaudReq.LegalBasisSearch true "分页获取法律依据列表"
// @Success 200 {object} response.Response{data=object,msg=string} "获取成功"
// @Router /LB/getLegalBasisPublic [get]
export const getLegalBasisPublic = () => {
  return service({
    url: '/LB/getLegalBasisPublic',
    method: 'get',
  })
}
